<extend name="layout/application"/>
<block name="content">
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf">
                    <strong class="am-text-primary am-text-lg">新增标签</strong> /
                    <small>Create A NEW Tag</small>
                </div>
            </div>
            <hr>
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-12">
                    <form class="am-form" action="{{:Url('Tags/save')}}" method="post">
                        <div class="am-tabs am-margin" data-am-tabs>
                            <div class="am-tabs-bd">
                                <div class="am-tab-panel am-fade am-in am-active">
                                    <div class="am-g am-margin-top">
                                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                                            标签分类
                                        </div>
                                        <div class="am-u-sm-8 am-u-md-5 am-u-end col-end">
                                            <select data-am-selected="{btnWidth: '100%',  btnStyle: 'secondary', btnSize: 'sm', maxHeight: 360, searchBox: 1}"
                                                    name="category_id">
                                                <foreach $cates as $cate>
                                                    <option value="{{$cate.id}}">{{$cate.name}}</option>
                                                </foreach>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="am-g am-margin-top">
                                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                                            标签名称
                                        </div>
                                        <div class="am-u-sm-8 am-u-md-5">
                                            <input type="text" class="am-input-sm" name="name">
                                        </div>
                                        <div class="am-hide-sm-only am-u-md-5">*必填，不可重复</div>
                                    </div>
                                    <div class="am-g am-margin-top">
                                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                                            排序
                                        </div>
                                        <div class="am-u-sm-8 am-u-md-5">
                                            <input type="text" class="am-input-sm" name="sort">
                                        </div>
                                        <div class="am-hide-sm-only am-u-md-6"></div>
                                    </div>

                                    <div class="am-g am-margin-top">
                                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                                            摘要描述
                                        </div>
                                        <div class="am-u-sm-8 am-u-md-5">
                                            <textarea rows="6" name="summary" placeholder="请输入描述信息"></textarea>
                                        </div>
                                        <div class="am-hide-sm-only am-u-md-6"></div>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="am-margin">
                            <button type="submit" class="am-btn am-btn-primary am-radius">提交保存</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>

    </div>

</block>